<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<title>用户列表</title>
	<style>.size{width:180px;height:200px;}</style>
	<link href="/study/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet">
	<link rel="stylesheet" href="/study/Public/bootstrap/css/bootstrap-theme.min.css">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="/study/Public/bootstrap/js/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="/study/Public/bootstrap/js/bootstrap.min.js"></script>
	
</head>
<body>
<h1>社团成员管理页面</h1>
<table class='table table-bordered'>
<tr>
<th>所属社团</th>
<th>学号</th>
<th>状态</th>
<th>操作</th>
</tr>
<?php if(is_array($practices)): $i = 0; $__LIST__ = $practices;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?></tr>
<th><?php echo ($vo["gid"]); ?></th>	
<th><?php echo ($vo["stunum"]); ?></th>
<th><?php if($vo["state"] == 0): ?>不通过
		<?php elseif($vo["state"] == 1): ?>通过
        <?php else: ?>负责人<?php endif; ?></th>
		<th>
	        <div class="btn-group">
                <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                   操作
                 <span class="caret"></span>
                  </a>
	             <ul class="dropdown-menu pull-right">
                 <li>
                    <?php if($vo["state"] == 0): ?><a href="setmjy?id=<?php echo ($vo["mid"]); ?>"><i class="icon-trash">通过</i></a>
                    <?php else: ?><a href="delmjy?id=<?php echo ($vo["mid"]); ?>"><i class="icon-trash">不通过</i></a><?php endif; ?>
                     </a></li>
                   <li> <?php if($vo["state"] == 1): ?><a href="delsetmjy?id=<?php echo ($vo["mid"]); ?>"><i class="icon-trash">设为负责人</i></a>
                   <?php else: ?><a href=""><i class="icon-trash"></i></a><?php endif; ?></li>
                      <li><a href="delmember?id=<?php echo ($vo["mid"]); ?>"><i class="icon-trash">删除</i></a>
                     </ul>

	</th>	
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
    </table>
</body>
</html>